package blq.ssnb.redbagaide.util;

import android.content.Context;

import com.blq.snblib.util.MyPreferences;

import blq.ssnb.redbagaide.constant.PListConstant;

/**
 * ================================================
 * 作者: SSNB
 * 日期: 2016/9/27
 * 描述:
 * 用户设置属性
 * ================================================
 */
public class Setting {

    private static Setting mSetting;
    private MyPreferences myPreferences;
    private Setting(Context context){
        myPreferences = new MyPreferences(context, PListConstant.SETTING_FILE_NAME);
    }

    public static Setting singleton(Context context){
        if(mSetting == null){
            synchronized (Setting.class){
                if(mSetting==null){
                    mSetting = new Setting(context);
                }
            }
        }
        return mSetting;
    }

}
